package com.zrx.domain.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 角色信息表(Role)表实体类
 *
 * @author makejava
 * @since 2022-09-28 08:48:00
 */

@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_role")
@ApiModel(value = "", description = "")
public class Role  {
    //角色ID
    @TableId
    private Long id;

   
    @ApiModelProperty(value = " 角色名称")
    private String roleName;
   
    @ApiModelProperty(value = " 角色权限字符串")
    private String roleKey;
   
    @ApiModelProperty(value = " 显示顺序")
    private Integer roleSort;
   
    @ApiModelProperty(value = " 角色状态（0正常 1停用）")
    private String status;
   
    @ApiModelProperty(value = " 删除标志（0代表存在 1代表删除）")
    private String delFlag;
   
    @ApiModelProperty(value = " 创建者")
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;
   
    @ApiModelProperty(value = " 创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
   
    @ApiModelProperty(value = " 更新者")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;
   
    @ApiModelProperty(value = " 更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
   
    @ApiModelProperty(value = " 备注")
    private String remark;

    //关联菜单id数组，不是表中的字段  用来接收参数使用
    @TableField(exist = false)
    private Long[] menuIds;

}

